/*!
OC_webtest v0.0.1
Copyright 2014 OrChange Inc. All rights reserved.
Licensed under the GPL License.
*/

function Edit(){
	this.currentDOM;
}



Edit.prototype = {

	// Watch each DOM when mouse over.
	watchDOM = function(){
		that = this;
		$("iframe").contents().find("body").delegate("*","mouseover",function(e){
		  e.stopPropagation();
		  console.log(this);
		  that.currentDOM = this;
		});
	},
	
	// Capture the DOM after mouse click.
	catchDOM : function(){
		$("iframe").contents().find("body").undelegate()
	},
	
	// Get the path by CSS selector.
	getCSSpath : function(){
	
	},
	
	// Make sure the DOM can be selected only by CSSpath.
	_isOnly : function(){
	
	},
	
	// Get the details of this DOM.
	getDOMdetial : function(){
	
	},

}

// Mark edit.js have been loaded successfully.
script.EDIT = true;